/**
 * Created by IntelliJ IDEA.
 * User: shenry
 * Date: Apr 25, 2008
 * Time: 3:24:53 PM
 * To change this template use File | Settings | File Templates.
 */
class User {

    String email
    String name
    String phone
    String password

    static constraints = {
            email(email:true, nullable:false, unique:true, blank:false)
            password(nullable:false, blank:false, size:5..10)
            name(blank:false, nullable:false)
            phone(blank:false, nullable:false,matches:"[0-9]{3}-[0-9]{3}-[0-9]{4}")
        
    }
}